package com.yuyu.qingmangmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuyu.common.utils.PageUtils;
import com.yuyu.qingmangmall.product.entity.AttrGroupEntity;
import com.yuyu.qingmangmall.product.vo.AttrGroupRelationVo;
import com.yuyu.qingmangmall.product.vo.AttrgropAndAttrsVo;
import com.yuyu.qingmangmall.product.vo.SkuItemVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author yuwengsheng
 * @email 3337002363@qq.com
 * @date 2021-05-31 10:48:26
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    void deleteRelation(AttrGroupRelationVo[] relationVo);

    List<AttrgropAndAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);

    List<SkuItemVo.SkuItemAttrGroupVo> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);
}

